<%@page import="com.zc.export.Constants"%>
<%@page import="com.ym.b2b.cache.configcache.WebAppConfig"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css" href="<c:url value='/js/jquery-easyui-1.4.1/themes/default/easyui.css'/>">
<link rel="stylesheet" type="text/css" href="<c:url value='/js/jquery-easyui-1.4.1/themes/icon.css'/>">
<link rel="stylesheet" type="text/css" href="<c:url value='/css/css.css'/>">
<link rel="stylesheet" type="text/css" href="<c:url value='/css/index.css'/>">
<script type="text/javascript" src="<c:url value='/js/jquery-2.1.1.min.js'/>"></script>
<!-- 版本兼容性选择 -->
<!--[if lt IE 9]>
	<script type="text/javascript" src="<c:url value='/js/jquery-1.11.1.min.js'/>"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
   <script type="text/javascript" src="<c:url value='/js/jquery-2.1.1.min.js'/>"></script>
<!--<![endif]-->

<script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/jquery.easyui.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/easyui-lang-zh_CN.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/easyui-extends.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/util/pms-util.js'/>"></script>
<!-- 
<script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/datagrid-scrollview.js'/>"></script>
 -->
<script type="text/javascript" src="<c:url value='/js/plug/base.js'/>"></script>



<%-- 引入扩展图标 --%>
<link rel="stylesheet" href="<c:url value='/css/sy/syExtIcon.css?version=20131115' />" type="text/css">
<%-- 引入自定义样式 --%>
<link rel="stylesheet" href="<c:url value='/css/sy/syExtCss.css?version=20131115' />" type="text/css">
<script type="text/javascript" src="<c:url value='/js/common/date.js'/>"></script>

<!-- 弹出 +提示插件 -->
<script src="<c:url value="/js/plug/layer-v1.8.5/layer/layer.min.js" />"></script>

<script src="<c:url value='/js/plug/art/jquery.artDialog.basic.source.js' />" ></script>
<link rel="stylesheet" href="<c:url value='/js/plug/art/blue.css' />" />

<script type="text/javascript">
	var contentPath = '<%=request.getContextPath() %>';
	function loadExecl(func){
		art.artDialog({
			title:'下载控件   可选execl',
		    lock: true,
		    width:250,
		    background: '#ccc', // 背景色
		    opacity: 0.87,	// 透明度
		    content: "<select id='loadLimit'><option value='30'>-下载当前页数据-</option><option value='<%=Constants.EXPORT_DATA_LIMIT %>'>-下载<%=Constants.EXPORT_DATA_LIMIT %>行-</option></select><br><select id='loadType'><option>-导出到excel-</option></select>",
		    icon: 'error',
		    ok: function () {
		    	window[func]();
		        return true;
		    },
		    cancel: true
		});
	}
	function loadExcelCallBack(dourl,queryParams){
			$.ajax({
			    url : dourl+'?loadType='+$("#loadLimit").val(),
			    pagination:false,
			    type : "POST",
			    dataType : "json",
			    data:queryParams,
			    beforeSend:function(){ art.artDialog({id:"abc",content: "<img src='"+contentPath+"/js/plug/art/_doc/images/loaderc.gif'/>导出中、请稍后...", lock: true});},
			    success : function(data) {
				    console.log(data.data);
			    	art.artDialog.list['abc'].close();
				    if(data.code=="100"){
				    	layer.msg("装载要下载的数据出错啦,错误代码："+data.result);
					}else{
						//parent.window.open('<c:url value="/util/load.do?"/>fileName='+data.data.outPath+'&title='+data.data.title);
						location.href = '<c:url value="/util/load.do?"/>fileName='+data.data.outPath+'&title='+data.data.title;
					}
				},
				error : function(XMLHttpRequest, textStatus, errorThrown) {
					art.artDialog.list['abc'].close();
				    layer.msg(" --下载出错啦 请联系管理员!");
				}
			});
	}
</script>
<style>
.detailTable{
	width: 100%;
	border: none;
}
.detailTable th{
	border: 1px solid #99BBE8;
	padding: 10px;
	text-align: right;
	background: #E0ECFF;
}
</style>
 
